import axios from '../utils/axios';
const baseURL = '/api/user/';
//是否注册
export const isRegisterApi = () => {
  return axios.post(`${baseURL}isRegister`);
}

//注册(检验是否有相同的用户名，如果没有则注册，有则返回错误信息)
export const RegisterApi = (params: any) => {
  return axios.post(`${baseURL}register`, params);
}

//登录
export const loginApi = (params: any) => {
  return axios.post(`${baseURL}signin`, params);
}